<?php
class report_model extends jqxGrid_CI_Model {

    function __construct()
    {
        parent::__construct();
        
    }
    function binding(){
        $strQuery="
            SELECT SQL_CALC_FOUND_ROWS dtb_product.*,dtb_product.ProductID as ID
            FROM `dtb_product`
            ";
        $strWhere="
            WHERE  `Delete` IS NULL
            ";
        $strOrderBy="Order By dtb_product.`Insert` DESC ";
        $strGroupBy="";
        $config=array(
            "strQuery"=>$strQuery,
            "strWhere"=>$strWhere,
            "strOrderBy"=>$strOrderBy,
            "strGroupBy"=>$strGroupBy,
            "usingLimit"=>false,
            "fields"=>array(),
            "datefields"=>array()
        );
        $this->init($config);
        return $this->jqxBinding();
    }
}
?>
